package com.copractice.data.dao.tag;

import com.copractice.data.dao.GenericDAO;
import com.copractice.data.entity.tag.Tag;

/**
 * Represents DAO for <code>Tag</code> entity.
 *
 * @author Dmitry Churbanov (dmitry.churbanov@gmail.com)
 * @version 1.0 03/13/2009
 * @see com.copractice.data.dao.GenericDAO
 * @see com.copractice.data.entity.tag.Tag
 */
public interface TagDAO extends GenericDAO<Tag, Long> {
    
    /**
     * Finds tag by tag name
     *
     * @param tagName the <code>String</code> which contains tag name
     *
     * @return instance of <code>Tag</code> class if tag with such name was found,
     *         otherwise returns null
     */    
    public Tag findByName(String tagName);

}
